com.supermap.ar.areffect

Class AREffectView

  • java.lang.Object
    • AREffectBaseView
      • com.supermap.ar.areffect.AREffectView


  • public class AREffectView
    extends AREffectBaseView
    AR special effect view control api 'com.google.android.filament:filament-android:1.7.0' api 'com.google.android.filament:gltfio-android:1.7.0' api 'com.google.ar:core:1.16.0'
    • Constructor Summary

      Constructors 
      Constructor and Description
      AREffectView(android.content.Context context)
      Construction method
      AREffectView(android.content.Context context, android.util.AttributeSet attrs) 
      AREffectView(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr) 
      AREffectView(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String captureScreen(java.lang.String folderPath)
      screenshots
      void closeGesture()
      Closes the gesture control (available for whole AR scene)
      void closePoseMixer()
      close pose fusion
      ArSceneView getArSceneView()
      Get ArSceneView
      float getDragSensitivity()
      Gets the sensitivity when dragging (when dragging 1dp on the screen, AR scene will move 0.002m)
      EffectViewRecorder getEffectViewRecorder()
      Gets the attitude view recorder Used to record posture video + parameter file
      java.lang.String getSceneDataPath()
      Gets the path of scene data
      boolean loadData()
      Loads data
      void onDestroy()
      Ruins the interface
      void onPause()
      Pause.
      void onPeekTouch(HitTestResult hitTestResult, android.view.MotionEvent motionEvent) 
      void onResume()
      Wakes the ar interface.
      void openGesture()
      Enables the gesture control (available for whole AR scene)
      IPoseMixer openPoseMixer()
      Create pose fusion
      boolean save()
      Saves the model
      void setDragSensitivity(float sensitivity)
      Sets the sensitivity when dragging Default value is 0.002.
      void setSceneCenter(Point3D center)
      Sets the AR scene change center (the zooming and rotation of an AR scene take "center" as a the center)
      void setSceneDataPath(java.lang.String sceneDataPath)
      Sets the path of scene data
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AREffectView

        public AREffectView(android.content.Context context)
        Construction method
        Parameters:
        context -
      • AREffectView

        public AREffectView(android.content.Context context,
                            android.util.AttributeSet attrs)
      • AREffectView

        public AREffectView(android.content.Context context,
                            android.util.AttributeSet attrs,
                            int defStyleAttr)
      • AREffectView

        public AREffectView(android.content.Context context,
                            android.util.AttributeSet attrs,
                            int defStyleAttr,
                            int defStyleRes)
    • Method Detail

      • setSceneCenter

        public void setSceneCenter(Point3D center)
        Sets the AR scene change center (the zooming and rotation of an AR scene take "center" as a the center)
        Parameters:
        center -
      • openGesture

        public void openGesture()
        Enables the gesture control (available for whole AR scene)
      • closeGesture

        public void closeGesture()
        Closes the gesture control (available for whole AR scene)
      • save

        public boolean save()
        Saves the model
      • loadData

        public boolean loadData()
        Loads data
      • onDestroy

        public void onDestroy()
        Ruins the interface
      • onResume

        public void onResume()
        Wakes the ar interface. Calling once is by default. It can be used in combination with onResume of activity.
      • onPause

        public void onPause()
        Pause. It is used for pausing AR interface. It can used together with onpause of activity
      • onPeekTouch

        public void onPeekTouch(HitTestResult hitTestResult,
                                android.view.MotionEvent motionEvent)
      • getDragSensitivity

        public float getDragSensitivity()
        Gets the sensitivity when dragging (when dragging 1dp on the screen, AR scene will move 0.002m)
        Returns:
      • setDragSensitivity

        public void setDragSensitivity(float sensitivity)
        Sets the sensitivity when dragging Default value is 0.002.
        Parameters:
        sensitivity -
      • getSceneDataPath

        public java.lang.String getSceneDataPath()
        Gets the path of scene data
        Returns:
      • setSceneDataPath

        public void setSceneDataPath(java.lang.String sceneDataPath)
        Sets the path of scene data
        Parameters:
        sceneDataPath -
      • getArSceneView

        public ArSceneView getArSceneView()
        Get ArSceneView
        Returns:
      • openPoseMixer

        public IPoseMixer openPoseMixer()
        Create pose fusion
        Returns:
      • closePoseMixer

        public void closePoseMixer()
        close pose fusion
      • captureScreen

        public java.lang.String captureScreen(java.lang.String folderPath)
        screenshots
        Parameters:
        folderPath - Path to the folder where the screenshot results are saved
        Returns:
        the saved file name
      • getEffectViewRecorder

        public EffectViewRecorder getEffectViewRecorder()
        Gets the attitude view recorder

        Used to record posture video + parameter file

        Returns: